/*
 * Created by Jaren at 2022/1/28 11:10
 */
import 'package:inmotion_protocol/common/error.dart';
import 'package:inmotion_protocol/common/response.dart';

class EzCANFileResponse extends FileResponse {
    EzCANFileResponse.byOriginError(int originError) : super.byOriginError(originError);

    EzCANFileResponse.success({int originError = 0, String message = 'Succeed.'}) : super.success(originError: originError, message: message);
}

class OpenFileResponse extends EzCANFileResponse {
    int existsFileSize = 0;

    OpenFileResponse.success(this.existsFileSize) :super.success();

    OpenFileResponse.byOriginError(int originError) :super.byOriginError(originError){
        error = FileError.unknown;
    }
}